package com.fire.control.system.dto;

import java.io.Serializable;
import java.util.List;

import com.fire.control.system.entity.Resource;

public class ResourceDTO implements Serializable{

	
	private static final long serialVersionUID = 1L;
	
	private String id;
	private String resourceId;
	private String name;
	private String resourceUrl;
	private String joinUrl;
	private String resourceDesc;
	private String resourceCode;
	private String resourceType;
	private String path;
	private String sort;
	private List<ResourceDTO> children;
	
	
	
	
	public String getSort() {
		return sort;
	}
	public void setSort(String sort) {
		this.sort = sort;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getPath() {
		return path;
	}
	public void setPath(String path) {
		this.path = path;
	}
	public List<ResourceDTO> getChildren() {
		return children;
	}
	public void setChildren(List<ResourceDTO> children) {
		this.children = children;
	}
	public String getResourceId() {
		return resourceId;
	}
	public void setResourceId(String resourceId) {
		this.resourceId = resourceId;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getResourceUrl() {
		return resourceUrl;
	}
	public void setResourceUrl(String resourceUrl) {
		this.resourceUrl = resourceUrl;
	}
	
	public String getJoinUrl() {
		return joinUrl;
	}
	public void setJoinUrl(String joinUrl) {
		this.joinUrl = joinUrl;
	}
	public String getResourceDesc() {
		return resourceDesc;
	}
	public void setResourceDesc(String resourceDesc) {
		this.resourceDesc = resourceDesc;
	}
	public String getResourceCode() {
		return resourceCode;
	}
	public void setResourceCode(String resourceCode) {
		this.resourceCode = resourceCode;
	}
	
	public void setResource(Resource resource){
		this.name = resource.getName();
		this.resourceCode = resource.getResourceCode();
		this.resourceDesc = resource.getResourceDesc();
		this.resourceId = resource.getId();
		this.resourceType = resource.getResourceType();
		this.resourceUrl = resource.getResourceUrl();
		this.joinUrl = resource.getJoinUrl();
		
		
	}
	public String getResourceType() {
		return resourceType;
	}
	public void setResourceType(String resourceType) {
		this.resourceType = resourceType;
	}
}
